FROM alpine:latest

RUN mkdir /etc/supervisor.d

RUN mkdir /app

RUN mkdir /app/app_logs

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories

RUN apk update && apk add supervisor && apk add vim && apk add make

RUN apk add --no-cache tzdata

ENV TZ Asia/Shanghai

#ADD bin/app /app/app

#ADD app_config.json /app/app_config.json

#ADD Makefile /app/Makefile

#ADD app_supervisor.ini /etc/supervisor.d/app_supervisor.ini

WORKDIR /app

EXPOSE 12345

CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisord.conf"]
